package general.messages;

import algorithms.TwoIntegers;
import general.Agent;
import general.conflictset.ArrayConflictSet;
import general.conflictset.ConflictSet;

public class ConflictMessage implements Message {

	ConflictSet conflicts;
	TwoIntegers cpa;
	
	public ConflictMessage(ArrayConflictSet conflicts, TwoIntegers p) {
		this.conflicts = conflicts;
		this.cpa = p;
	}
	
	public ConflictSet getConflicts() {
		return conflicts;
	}
	
	public TwoIntegers getCpa() {
		return cpa;
	}
	
	@Override
	public boolean handle(Agent e) {
		return e.handleMessage(this);
	}

	public TwoIntegers getCpaId() {
		return cpa;
	}

}
